// Copyright (c) 2009 Alistair Jones
// This program is made available under the terms of the MIT License.
package org.hypirinha.html.codegen;

import java.io.PrintStream;

public class AbstractMethod implements Member {
    private final String methodName;
    private final String returnType;
    private String parameters;

    public AbstractMethod(String methodName, String returnType, String parameters) {
        this.methodName = methodName;
        this.returnType = returnType;
        this.parameters = parameters;
    }

    public void printTo(PrintStream printStream) {
        printStream.println();
        printStream.println("    " + returnType + " " + methodName + "(" + parameters +  ");");
    }

    public String getMethodName() {
        return methodName;
    }

    public String getReturnType() {
        return returnType;
    }
}
